﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NearForums.Validation;

namespace NearForums
{
    public class Answers :Entity
    {
        public Answers()
        {
 
        }

        public Answers(int id)
            : this()
        {
            this.ID = id;
        }

        public int ID
        {
            get;
            set;
        }

        [RequireField]
        public string Answer
        {
            get;
            set;
        }

        public int Voted
        {
            get;
            set;
        }

        public Boolean IsBest
        {
            get;
            set;
        }

        public DateTime AnswerDate
        {
            get;
            set;
        }

        public User User
        {
            get;
            set;
        }

        public Questions Question
        {
            get;
            set;
        }

    }
}
